package com.hjwoo.app.been;

import java.util.HashMap;
import java.util.List;

/**
 * Created by zhaokaiwen on 2016/4/28.
 */
public class AppSubmitRequstObject
{

//    [
//    opportunity: [
//    loanDuration: 1,
//    secondMortgageAmount: 1,
//    bool: 1,
//    mortgageType: 一二抵转单,
//    cellphone: 241234,
//    fullName: Qwerwer,
//    requestedAmount: 12342134,
//    idNumber: 1234124,
//    maritalStatus: 已婚,
//    contacts: [
//            [
//    cellphone: 12341234,
//    type: 借款人配偶,
//    idNumber: 1231234
//            ],
//            [
//    type: 抵押人
//    ],
//            [
//    type: 抵押人配偶
//    ]
//            ],
//    firstMortgageAmount: 21341243
//            ],
//    sessionId: 58a69e07-9af2-4cd8-b50c-4d53fc79e134
//    ]
//   第一页参数 serialNumber,requestedAmount,loanDuration,mortgageType,firstMortgageAmount,secondMortgageAmount，  typeOfFirstMortgage
//第二页
    // fullName idNumber maritalStatus spouseFullName spouseIdNumber spouseCellphone cellphone mortgagorFullName mortgagorIdNumber
// mortgagorMaritalStatus mortgagorSpouseFullName mortgagorSpouseIdNumber mortgagorSpouseCellphone mortgagorCellphone

    private String serialNumber;
    private String requestedAmount;
    private String loanDuration;
    private String mortgageType;
    private String firstMortgageAmount;
    private String secondMortgageAmount;

    private String fullName;
    private String idNumber;
    private String maritalStatus;
    private String spouseFullName;
    private String cellphone;
    private String mortgagorFullName;
    private String mortgagorMaritalStatus;
    private String mortgagorSpouseFullName;

    private List<HashMap> contacts;

    @Override
    public String toString()
    {
        return "AppSubmitRequstObject{" +
               "serialNumber='" + serialNumber + '\'' +
               ", requestedAmount='" + requestedAmount + '\'' +
               ", loanDuration='" + loanDuration + '\'' +
               ", mortgageType='" + mortgageType + '\'' +
               ", firstMortgageAmount='" + firstMortgageAmount + '\'' +
               ", secondMortgageAmount='" + secondMortgageAmount + '\'' +
               ", fullName='" + fullName + '\'' +
               ", idNumber='" + idNumber + '\'' +
               ", maritalStatus='" + maritalStatus + '\'' +
               ", spouseFullName='" + spouseFullName + '\'' +
               ", cellphone='" + cellphone + '\'' +
               ", mortgagorFullName='" + mortgagorFullName + '\'' +
               ", mortgagorMaritalStatus='" + mortgagorMaritalStatus + '\'' +
               ", mortgagorSpouseFullName='" + mortgagorSpouseFullName + '\'' +
               ", contacts=" + contacts +
               '}';
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getRequestedAmount()
    {
        return requestedAmount;
    }

    public void setRequestedAmount(String requestedAmount)
    {
        this.requestedAmount = requestedAmount;
    }

    public String getLoanDuration()
    {
        return loanDuration;
    }

    public void setLoanDuration(String loanDuration)
    {
        this.loanDuration = loanDuration;
    }

    public String getMortgageType()
    {
        return mortgageType;
    }

    public void setMortgageType(String mortgageType)
    {
        this.mortgageType = mortgageType;
    }

    public String getFirstMortgageAmount()
    {
        return firstMortgageAmount;
    }

    public void setFirstMortgageAmount(String firstMortgageAmount)
    {
        this.firstMortgageAmount = firstMortgageAmount;
    }

    public String getSecondMortgageAmount()
    {
        return secondMortgageAmount;
    }

    public void setSecondMortgageAmount(String secondMortgageAmount)
    {
        this.secondMortgageAmount = secondMortgageAmount;
    }

    public String getFullName()
    {
        return fullName;
    }

    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }

    public String getIdNumber()
    {
        return idNumber;
    }

    public void setIdNumber(String idNumber)
    {
        this.idNumber = idNumber;
    }

    public String getMaritalStatus()
    {
        return maritalStatus;
    }

    public void setMaritalStatus(String maritalStatus)
    {
        this.maritalStatus = maritalStatus;
    }

    public String getSpouseFullName()
    {
        return spouseFullName;
    }

    public void setSpouseFullName(String spouseFullName)
    {
        this.spouseFullName = spouseFullName;
    }

    public String getCellphone()
    {
        return cellphone;
    }

    public void setCellphone(String cellphone)
    {
        this.cellphone = cellphone;
    }

    public String getMortgagorFullName()
    {
        return mortgagorFullName;
    }

    public void setMortgagorFullName(String mortgagorFullName)
    {
        this.mortgagorFullName = mortgagorFullName;
    }

    public String getMortgagorMaritalStatus()
    {
        return mortgagorMaritalStatus;
    }

    public void setMortgagorMaritalStatus(String mortgagorMaritalStatus)
    {
        this.mortgagorMaritalStatus = mortgagorMaritalStatus;
    }

    public String getMortgagorSpouseFullName()
    {
        return mortgagorSpouseFullName;
    }

    public void setMortgagorSpouseFullName(String mortgagorSpouseFullName)
    {
        this.mortgagorSpouseFullName = mortgagorSpouseFullName;
    }

    public List<HashMap> getContacts()
    {
        return contacts;
    }

    public void setContacts(List<HashMap> contacts)
    {
        this.contacts = contacts;
    }

    public static class Contacts
    {
        String cellphone;
        String idNumber;
        String type;

        @Override
        public String toString()
        {
            return "Contacts{" +
                   "cellphone='" + cellphone + '\'' +
                   ", idNumber='" + idNumber + '\'' +
                   ", type='" + type + '\'' +
                   '}';
        }

        public String getCellphone()
        {
            return cellphone;
        }

        public void setCellphone(String cellphone)
        {
            this.cellphone = cellphone;
        }

        public String getIdNumber()
        {
            return idNumber;
        }

        public void setIdNumber(String idNumber)
        {
            this.idNumber = idNumber;
        }

        public String getType()
        {
            return type;
        }

        public void setType(String type)
        {
            this.type = type;
        }
    }
}
